﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace Wicresoft.Task.Team.Entity
{
    public class ChangesetInfo
    {

        [Key]
        public int Id { get; set; }


        [Required]
        public int ChangeSetId { get; set; }

        
        [Required]
        [StringLength(20)]
        public string Owner { get; set; }

        [Required]
        public DateTime CreationDate { get; set; }

        [StringLength(500)]
        public string Comment { get; set; }


        //提交者
        [Required]
        [StringLength(20)]
        public string Committer { get; set; }


        //实现Shelve与ChangeSet的关联。
        [Required]
        [ForeignKey("ShelvesetId ")]
        public int ShelvesetId { get; set; }

        public virtual ShelveInfo shelveInfo { get; set; }

    }
}
